package com.jic.product.mapper;

import com.jic.common.base.vo.RestResult;
import com.jic.product.after.response.HotProductResponse;
import com.jic.product.manage.response.ShopInfoResponse;
import com.jic.product.model.entity.MHotProduct;
import com.jic.product.model.vo.request.MHotProductRequest;

import java.util.List;
public interface MHotProductMapper {
	/**
	 * M_HOT_PRODUCT插入数据
	 * @param mHotProduct 入参实体类
	 */
	int insert (MHotProduct mHotProduct);

	/**
	 * M_HOT_PRODUCT插入数据
	 * @param mHotProduct 入参实体类
	 */
	int insertSelective (MHotProduct mHotProduct);

	/**
	 * M_HOT_PRODUCT根据表对象数据修改数据
	 * @param mHotProduct 入参实体类
	 */
	int updateByPrimaryKey (MHotProduct mHotProduct);

	/**
	 * M_HOT_PRODUCT根据表对象数据修改数据
	 * @param mHotProduct 入参实体类
	 */
	int updateByPrimaryKeySelective (MHotProduct mHotProduct);

	/**
	 * M_HOT_PRODUCT根据id删除数据
	 * @param mHotProduct 入参实体类
	 */
	int deleteByPrimaryKey (MHotProduct mHotProduct);

	/**
	 * M_HOT_PRODUCT根据主键查询数据
	 * @param mHotProduct 入参实体类
	 */
	MHotProduct selectByPrimaryKey (MHotProduct mHotProduct);

	/**
	 * M_HOT_PRODUCT根据主键查询数据
	 * @param mHotProduct 入参实体类
	 */
	List<MHotProduct> listPageBySelective (MHotProduct mHotProduct);

	/**
	 * M_HOT_PRODUCT查询数据
	 * @param mHotProduct 入参实体类
	 */
	List<MHotProduct>  selectBySelective (MHotProduct mHotProduct);
    /**
     * M_HOT_PRODUCT查询数据
     * @param productId 入参实体类
     */
    RestResult<List<MHotProduct>> queryTopTenProduct (List<Long> productId);

    List<HotProductResponse> queryProductListTopTen();
    List<ShopInfoResponse> listTopTenProduct (MHotProductRequest mHotProduct);
}
